package com.cscp.javastudy.designpattern.factory.abstracts;

public class Client {

    public static void main(String[] args) {
        System.out.println("======小米系列产品======");
        XiaomiFactory xiaomiFactory = new XiaomiFactory();
        IphoneProduct iphoneProduct = xiaomiFactory.iphoneProduct();
        IRouterProduct iRouterProduct = xiaomiFactory.routerProduct();
        iRouterProduct.start();
        iphoneProduct.start();

        System.out.println("======华为系列产品======");
        HuaweiFactory huaweiFactory = new HuaweiFactory();
        IphoneProduct iphoneProduct1 = huaweiFactory.iphoneProduct();
        iphoneProduct1.start();
    }

}
